package com.itheima.reggie.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.reggie.common.R;
import com.itheima.reggie.entity.Setmeal;
import com.itheima.reggie.entity.vo.SetmealDto;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Transactional
public interface SetmealService extends IService<Setmeal> {
    R pageSetmeal(Integer page, Integer pageSize, String name);

    R saveSetmeal(SetmealDto setmealDto);

    R deleteSetmeal(List<Long> ids);


    R updateSetmealStatus(Integer status, List<Long> ids);

    R selectSetmealById(Long id);

    R updateSetmeal(SetmealDto setmealDto);

    R getSetmealsByCategoryId(Long categoryId, Integer status);
}
